package concurrency;

public class Driver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Thread t = new Thread(new Timer02());
		t.start();
		try {
			System.out.println("Start timer");
			while (t.isAlive()) {
				System.out.println("Thread is alive");
				t.join(4000);
			}
			System.out.println("Thread is dead");
		} catch (InterruptedException e) {
			System.out.println("The thread was interrupted.");
		}
	}
}
